<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<jsp:include page="Redir.jsp"></jsp:include>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<link href="<c:url value='/css/default.css'/>" rel="stylesheet"
	type="text/css" />
<head>
<fmt:setBundle basename="lang.message" />
<title><fmt:message key="label.facility.add" /></title>
</head>
<body>
	<%@include file="Header.jsp"%>
	<div id="wrapper">
		<div id="page-wrapper">
			<div id="page">
				<%@include file="Menu.jsp"%>
				<div id="content">
					<div>
						<h2>Approve/Reject Booking</h2>
						<br />
						<br />
						<table class="table-view">
							<tr>
								<th>#</th>
								<th><fmt:message key="label.booking.id" /></th>
								<th><fmt:message key="label.booking.facilityName" /></th>
								<th><fmt:message key="label.booking.startDate" /></th>
								<th><fmt:message key="label.booking.endDate" /></th>
								<th><fmt:message key="label.booking.status" /></th>
								<th><fmt:message key="label.booking.userId" /></th>
								<th><fmt:message key="label.bookingdetails" /></th>
							</tr>
							<c:forEach var="booking" items="${bookinglist}" varStatus="status">
								<tr class="${status.index%2==0?'even':'odd'}">
									<td class="id">${status.index + 1}</td>
									<td class="small">${booking.id}</td>
									<td>${booking.facilityName}</td>
									<td>${booking.startDate}</td>
									<td>${booking.endDate}</td>
									<td>${booking.status}</td>
									<td>${booking.userId}</td>
									<td class="edit"><c:url var="dtlurl" scope="page"
											value="DetailBooking">
											<c:param name="id" value="${booking.id}" />

											<c:param name="action" value="detail" />
										</c:url> <a href="${dtlurl}"><fmt:message
												key="label.bookingdetails" /></a></td>

								</tr>
							</c:forEach>
						</table>
					</div>
				</div>
			</div>
		</div>
	</div>
	<%@include file="Footer.jsp"%>
</body>
</html>